package jsyf.oa.entity.device;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by 92852 on 2018/3/22.
 */
@Entity
@Table(name = "T_DVC_ASSESS", schema = "oa", catalog = "")
public class AssessEntity extends BaseEntity {

    private String assessUser;

    private String assessPrice;

    private String assesssDate;

    private String purPrice;

    private String inboundShipping;

    private String repModel;

    private String squenceAS;

    private String limitPrice;

    private String newCarPrice;

    public String getAssessUser() {
        return assessUser;
    }

    public void setAssessUser(String assessUser) {
        this.assessUser = assessUser;
    }

    public String getAssessPrice() {
        return assessPrice;
    }

    public void setAssessPrice(String assessPrice) {
        this.assessPrice = assessPrice;
    }

    public String getAssesssDate() {
        return assesssDate;
    }

    public void setAssesssDate(String assesssDate) {
        this.assesssDate = assesssDate;
    }

    public String getPurPrice() {
        return purPrice;
    }

    public void setPurPrice(String purPrice) {
        this.purPrice = purPrice;
    }

    public String getInboundShipping() {
        return inboundShipping;
    }

    public void setInboundShipping(String inboundShipping) {
        this.inboundShipping = inboundShipping;
    }

    public String getRepModel() {
        return repModel;
    }

    public void setRepModel(String repModel) {
        this.repModel = repModel;
    }

    public String getSquenceAS() {
        return squenceAS;
    }

    public void setSquenceAS(String squenceAS) {
        this.squenceAS = squenceAS;
    }

    public String getLimitPrice() {
        return limitPrice;
    }

    public void setLimitPrice(String limitPrice) {
        this.limitPrice = limitPrice;
    }

    public String getNewCarPrice() {
        return newCarPrice;
    }

    public void setNewCarPrice(String newCarPrice) {
        this.newCarPrice = newCarPrice;
    }

    @Override
    public JSONObject getJSONObject() {
/*getAssessUser getAssessPrice getAssesssDate getPurPrice
getInboundShipping getRepModel getSquenceAS getLimitPrice getNewCarPrice*/
        JSONObject obj = new JSONObject();
        obj.put("ID", this.getId());
        obj.put("ASSESS_USER", this.getAssessUser());
        obj.put("ASSESS_PRICE", this.getAssessPrice());
        obj.put("ASSESS_DATE", this.getAssesssDate());
        obj.put("PUR_PRICE", this.getPurPrice());
        obj.put("INBOUND_SHIPPING", this.getInboundShipping());
        obj.put("REP_MODEL", this.getRepModel());
        obj.put("SQUENCEAS", this.getSquenceAS());
        obj.put("LIMIT_PRICE", this.getLimitPrice());
        obj.put("NEW_CAR_PRICE", this.getNewCarPrice());

        return obj;


    }

    @Override
    public String getTableName() {
        return "T_DVC_ASSESS";
    }

    @Override
    public JSONObject getJSONColumns() {

        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("ASSESS_USER", "assessUser");
        obj.put("ASSESS_PRICE", "assessPrice");
        obj.put("ASSESS_DATE", "assesssDate");
        obj.put("PUR_PRICE", "purPrice");
        obj.put("INBOUND_SHIPPING", "inboundShipping");
        obj.put("REP_MODEL", "repModel");
        obj.put("SQUENCEAS", "squenceAS");
        obj.put("LIMIT_PRICE", "limitPrice");
        obj.put("NEW_CAR_PRICE", "newCarPrice");
        return obj;
    }
}
